﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="video_content.aspx.cs" Inherits="mystudy_video_content" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../style.css" rel="stylesheet" type="text/css" />

    <script src="../flowPlayer/jquery.min.js" type="text/javascript"></script>

    <script src="../flowPlayer/flowplayer-3.1.4.min.js" type="text/javascript"></script>

    <script src="../flowPlayer/plug.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
        $(document).ready(function() {
            if ($("#HideId").val() != "") {
                var cid = $("#HideId").val();
                VideoPlay();
            }
            else {
                $("#player").removeAttr("style");
                $("#player").html("该课程尚未添加内容");
            }
        });
        
    </script>

    <style type="text/css">
        body
        {
            margin: 0px;
            width: 650px;
            scoll-bar: false;
        }
        .playlist
        {
            display: none;
        }
        div.player
        {
            margin-left: 20px;
            _margin-left:10px;
            margin-top: 20px;
            display: block;
            width: 500px;
            height: 400px;
            color: #fff;
            cursor: pointer;
            float: left;
        }
        /* splash image */
        a.player img
        {
            margin-top: 115px;
            border: 0;
        }
        a.player
        {
            margin-top: 0px;
        }
        .playlist
        {
            float: left;
        }
        .playlist ul
        {
            list-style: none;
            line-height: 25px;
        }
        a
        {
            color: black;
        }
        .play
        {
            color: red;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="video_box" style="background-color:#cccccc;height:470px;">
        <div class="video_play">
            <div class="video_playing">              
                <div id="player" class="player plain" style="border:5px solid #000;background-color:#000;">
                </div>
                <div class="playlist">
                    <ul id="playlist">
                        <asp:Repeater ID="playlist" runat="server">
                            <ItemTemplate>
                                <li><a href="javascript:void(0);" id='<%# Eval("title_id") %>'>
                                    <%# Eval("f_title") %>
                                </a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <div style="clear: both;">
                     <div id="title" style="padding-left:18px;padding-top:10px;font-size:14px;font-weight:bold;">讲义内容：
                </div>
                    <div id="content">
                    </div>
                </div>
            </div>
            <div class="video_name">
                <%# Eval("f_title") %></div>
        </div>
        <div class="video_list" style="overflow: auto;">
            <table width="100%" class="font33">
                <tr>
                    <td align="left" valign="top">
                        <input type="hidden" id="HideId" runat="server"/>
                        <asp:DataGrid ID="MyDataGrid" runat="server" AllowPaging="false" AutoGenerateColumns="False"
                            OnItemCommand="MyDataGrid_ItemCommand" BackColor="White" BorderColor="#E7E7FF"
                            BorderStyle="None" BorderWidth="0px" CellPadding="0" GridLines="Horizontal" PagerStyle-HorizontalAlign="left"
                            PagerStyle-Mode="NumericPages" PageSize="10" ShowHeader="False" Width="100%"
                            CssClass="font33">
                            <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                            <AlternatingItemStyle BackColor="#ffffff" />
                            <ItemStyle BackColor="#EFEFEF" ForeColor="#4A3C8C" Wrap="False" />
                            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" HorizontalAlign="Center"
                                VerticalAlign="Middle" />
                            <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                            <Columns>
                                <asp:TemplateColumn>
                                    <HeaderStyle HorizontalAlign="Center" Width="100%" />
                                    <ItemStyle Font-Size="14px" HorizontalAlign="Left" />
                                    <HeaderTemplate>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="replyFlag" runat="server" Visible="False">
								<img src="s2.gif" alt="">
                                        </asp:Label>
                                        <asp:ImageButton ID="ImgOpen" runat="server" BorderWidth="0" Height="16" ImageUrl="Open.gif"
                                            OnCommand="ImageButton_Command" Width="16" />
                                        <asp:Label ID="impLa" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.f_imp") %>'
                                            Visible="False">
                                        </asp:Label>
                                        <asp:Label ID="topicLa" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.f_topic") %>'
                                            Visible="False">
                                        </asp:Label>
                                        <asp:Label ID="newsLa" runat="server" Font-Bold="True" Visible="False">
								<blink>
									<font color="#0000ff">NEWS</font></blink>
                                        </asp:Label>
                                        <asp:Label ID="eliteLa" runat="server" Font-Bold="True" Visible="False">
								<font color="#0000ff">
									<blink>精</blink></font>
                                        </asp:Label>
                                        <asp:LinkButton Text='<%# DataBinder.Eval(Container.DataItem,"f_title")%>' runat='server'
                                            CommandName='LinkButtonClick' CommandArgument='<%# DataBinder.Eval(Container.DataItem,"title_id")%>'></asp:LinkButton>
                                        <asp:Label ID="lblManager" runat="server" Visible="false"><a target='video_content' style="color: #009900;" href="../kecheng_mp/edit.aspx?title_id=<%# DataBinder.Eval(Container.DataItem,"title_id")%>">
                                        管理</a></asp:Label>
                                        <asp:Label ID="titleid" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "title_id") %>'
                                            Visible="False">
                                        </asp:Label>
                                        <asp:Label ID="Label2" runat="server" Text="">
                                        </asp:Label>
                                        <asp:Label ID="Label5" runat="server" Text="">
                                        </asp:Label>
                                        <asp:Label ID="LaReMan" runat="server" Visible="False"></asp:Label>
                                        <asp:DataList ID="dlcdList" runat="server" CellPadding="2" RepeatDirection="Vertical"
                                            RepeatLayout="Table" Width="100%">
                                            <ItemTemplate>
                                                <asp:Label ID="Child" runat="server"></asp:Label>
                                                <asp:Label ID="cId" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.title_id") %>'
                                                    Visible="False">'></asp:Label>
                                                <asp:Label ID="cTitle" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.f_title") %>'
                                                    Visible="False">
                                                </asp:Label>
                                                <asp:Label ID="cLayer" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.f_layer") %>'
                                                    Visible="False">
                                                </asp:Label>
                                                <asp:Label ID="cRead" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.f_read") %>'
                                                    Visible="False">
                                                </asp:Label>
                                                <asp:Label ID="cReply" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.f_reply") %>'
                                                    Visible="False">
                                                </asp:Label>
                                                <asp:Label ID="cDate" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.f_date1") %>'
                                                    Visible="False">
                                                </asp:Label>
                                                <asp:Label ID="cUsers" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.f_writer") %>'
                                                    Visible="False">
                                                </asp:Label>
                                            </ItemTemplate>
                                        </asp:DataList>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                            </Columns>
                            <PagerStyle BackColor="#ffffff" ForeColor="#4A3C8C" HorizontalAlign="Right" Mode="NumericPages" />
                        </asp:DataGrid>
                    </td>
                </tr>
                <tr style="display:none;">
                    <td>
                        &nbsp;<asp:HyperLink ID="BtnNew" runat="server" BackColor="LightGray" BorderStyle="Outset"
                            Font-Size="Small" Font-Strikeout="False" Font-Underline="False" Height="20px"
                            NavigateUrl="~/kecheng_mp/modify.aspx" Target="video_content" Width="70px">新建一节课</asp:HyperLink>&nbsp;
                        <div style="color: Blue; width: 200px; height: 80px; display: none; float: right;"
                            id="operateShow">
                            <strong>操作提示:</strong><br />
                            点击<span style="color: Red">[管理]</span>，然后点击<span style="color: Red">[上传视频]</span>来上传视频</div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table style="display:none;">
                            <tr>
                                <td style="width: 95px">
                                    <asp:DropDownList ID="DplConfirm" runat="server" AutoPostBack="True" Enabled="False"
                                        Visible="False" Width="79px">
                                        <asp:ListItem>通过</asp:ListItem>
                                        <asp:ListItem>不通过</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:DropDownList ID="DplPingfen" runat="server" AutoPostBack="True" Enabled="False"
                                        Visible="False" Width="96px">
                                        <asp:ListItem Value="10">拜他为师</asp:ListItem>
                                        <asp:ListItem Value="8">很有收获</asp:ListItem>
                                        <asp:ListItem Selected="True" Value="6">值得学</asp:ListItem>
                                        <asp:ListItem Value="3">一般般</asp:ListItem>
                                        <asp:ListItem Value="1">没学到啥</asp:ListItem>
                                        <asp:ListItem Value="0">不想学了</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="关闭窗口" />
                                </td>
                                <td style="width: 83px">
                                    <asp:Button ID="BtnDefin" runat="server" Enabled="False" OnClick="BtnDefin_Click"
                                        Text="评分" Visible="False" Width="56px" />
                                </td>
                                <td style="width: 82px">
                                    <asp:Button ID="BtnBaoming" runat="server" Enabled="False" Text="报名" Visible="False"
                                        Width="59px" OnClick="BtnBaoming_Click" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr style="display:none;">
                    <td style="width: 100px; color: Red;">
                        &nbsp;<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:gConnectionString %>"
                            SelectCommand="SELECT [f_title] FROM [kecheng_mp] WHERE ([f_topic] = @f_topic)">
                            <SelectParameters>
                                <asp:SessionParameter Name="f_topic" SessionField="stopic" Type="String" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                        <strong>操作提示:</strong><br />
                        点击[管理]，然后点击[上传视频]来上传视频
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
